#include "u8g2PageInit.h"
#include "stdlib.h"
static unsigned int slowDown = 0;
static unsigned int ii = 0;
BOOL u8g2PageInit(u8g2_t *u8g2)
{
    BOOL ret = FALSE;
    if (slowDown >= 1)
    {
        slowDown = 0;
        if (ii < 97)
        {
            ii += rand()%3;
        }
        else
        {
            ret = TRUE;
            ii = 97;
        }
        // u8g2_SetFont(u8g2, u8g2_font_spleen16x32_mu);
    }
    else
    {
        slowDown += 1;
    }
    u8g2_DrawStr(u8g2, 16, 36, "SPARKY");
    u8g2_DrawHLine(u8g2, 15, 56, 128 - 31);
    u8g2_DrawHLine(u8g2, 15, 48, 128 - 31);
    u8g2_DrawVLine(u8g2, 15, 48, 9);
    u8g2_DrawVLine(u8g2, 127 - 16, 48, 9);
    u8g2_DrawBox(u8g2, 15, 48, ii, 9);
    return ret;
}
